<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>求职列表 - 职场社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #eff6ff;
            --primary-dark: #1d4ed8;
            --secondary: #0f766e;
            --dark: #1e293b;
            --gray: #64748b;
            --light-gray: #f1f5f9;
            --border-gray: #cbd5e1;
            --danger: #ef4444;
            --success: #10b981;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .main-container {
            padding: 2rem 0;
        }
        
        .page-header {
            margin-bottom: 1.5rem;
        }
        
        .page-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark);
        }
        
        .result-count {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        /* 筛选区域样式 */
        .filter-section {
            background-color: white;
            border-radius: 8px;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .filter-title {
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        .filter-toggle {
            color: var(--primary);
            background: none;
            border: none;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
        }
        
        .filter-groups {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .filter-group {
            flex: 1;
            min-width: 200px;
        }
        
        .filter-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            font-size: 0.95rem;
        }
        
        .filter-input {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-gray);
            border-radius: 6px;
            font-size: 0.95rem;
            transition: border-color 0.2s;
        }
        
        .filter-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            padding-top: 0.5rem;
            border-top: 1px solid var(--light-gray);
        }
        
        .btn-reset {
            color: var(--gray);
            background-color: white;
            border: 1px solid var(--border-gray);
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-reset:hover {
            background-color: var(--light-gray);
        }
        
        .btn-apply {
            color: white;
            background-color: var(--primary);
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-apply:hover {
            background-color: var(--primary-dark);
        }
        
        /* 快速筛选标签 */
        .quick-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .quick-filter-tag {
            background-color: white;
            border: 1px solid var(--border-gray);
            border-radius: 20px;
            padding: 0.35rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .quick-filter-tag.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .quick-filter-tag:hover:not(.active) {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        /* 排序和布局控制 */
        .view-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .sort-controls {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .sort-label {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .sort-select {
            padding: 0.4rem 0.75rem;
            border: 1px solid var(--border-gray);
            border-radius: 6px;
            font-size: 0.9rem;
            color: var(--dark);
        }
        
        .layout-controls {
            display: flex;
            gap: 0.5rem;
        }
        
        .layout-btn {
            background-color: white;
            border: 1px solid var(--border-gray);
            border-radius: 6px;
            padding: 0.4rem 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }
        
        .layout-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 职位卡片样式 */
        .job-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 1.5rem;
        }
        
        .job-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .job-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .job-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        
        .job-content {
            padding: 1.25rem;
        }
        
        .job-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            text-decoration: none;
            display: block;
        }
        
        .job-title:hover {
            color: var(--primary);
        }
        
        .job-company {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .job-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .job-meta-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .job-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .job-tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.2rem 0.6rem;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .job-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid var(--light-gray);
        }
        
        .post-info {
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .job-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            color: var(--gray);
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.85rem;
            transition: color 0.2s;
        }
        
        .action-btn:hover {
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        /* 列表布局样式 */
        .list-view .job-list {
            display: block;
        }
        
        .list-view .job-card {
            display: flex;
            margin-bottom: 1rem;
        }
        
        .list-view .job-image-container {
            width: 200px;
            flex-shrink: 0;
        }
        
        .list-view .job-image {
            height: 100%;
        }
        
        .list-view .job-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .list-view .job-footer {
            margin-top: auto;
        }
        
        /* 已选筛选标签 */
        .selected-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background-color: var(--primary-light);
            border-radius: 8px;
        }
        
        .selected-filter {
            background-color: white;
            border-radius: 20px;
            padding: 0.3rem 0.75rem;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        
        .remove-filter {
            color: var(--gray);
            background: none;
            border: none;
            cursor: pointer;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .remove-filter:hover {
            background-color: var(--light-gray);
            color: var(--danger);
        }
        
        /* 分页控件 */
        .pagination-container {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border-gray);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .page-btn:hover:not(.active):not(.disabled) {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .filter-groups {
                flex-direction: column;
                gap: 1rem;
            }
            
            .quick-filters {
                gap: 0.5rem;
            }
            
            .quick-filter-tag {
                padding: 0.25rem 0.75rem;
                font-size: 0.85rem;
            }
            
            .view-controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .list-view .job-card {
                flex-direction: column;
            }
            
            .list-view .job-image-container {
                width: 100%;
            }
            
            .list-view .job-image {
                height: 160px;
            }
            
            .job-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
            
            .job-actions {
                width: 100%;
                justify-content: space-between;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-briefcase"></i>
                职场社交
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto gap-4">
                    <li class="nav-item"><a href="#" class="nav-link">首页</a></li>
                    <li class="nav-item"><a href="#" class="nav-link active">求职</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">招聘会</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">公司</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">社区</a></li>
                    <li class="nav-item">
                        <a href="#" class="nav-link" title="个人中心">
                            <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 32px; height: 32px;">
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-container">
        <div class="page-header">
            <h1 class="page-title">求职列表</h1>
            <p class="result-count">找到 <strong>256</strong> 个职位</p>
        </div>
        
        <!-- 已选筛选条件 -->
        <div class="selected-filters" id="selectedFilters">
            <div class="selected-filter">
                <span>城市: 北京</span>
                <button class="remove-filter" onclick="removeFilter('city', '北京')">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <div class="selected-filter">
                <span>薪资: 15k-30k</span>
                <button class="remove-filter" onclick="removeFilter('salary', '15k-30k')">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <div class="selected-filter">
                <span>经验: 1-3年</span>
                <button class="remove-filter" onclick="removeFilter('experience', '1-3年')">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <button class="btn-reset" style="margin-left: auto;" onclick="clearAllFilters()">
                清除全部
            </button>
        </div>
        
        <!-- 高级筛选区域 -->
        <div class="filter-section">
            <div class="filter-header">
                <h3 class="filter-title">高级筛选</h3>
                <button class="filter-toggle" id="filterToggle">
                    <i class="fas fa-chevron-up"></i>
                    <span>收起</span>
                </button>
            </div>
            
            <div class="filter-content" id="filterContent">
                <div class="filter-groups">
                    <div class="filter-group">
                        <label class="filter-label">关键词</label>
                        <input type="text" class="filter-input" placeholder="职位、公司或关键词">
                    </div>
                    
                    <div class="filter-group">
                        <label class="filter-label">城市</label>
                        <select class="filter-input">
                            <option value="">全部城市</option>
                            <option value="beijing" selected>北京</option>
                            <option value="shanghai">上海</option>
                            <option value="guangzhou">广州</option>
                            <option value="shenzhen">深圳</option>
                            <option value="hangzhou">杭州</option>
                            <option value="chengdu">成都</option>
                        </select>
                    </div>
                    
                    <div class="filter-group">
                        <label class="filter-label">薪资范围</label>
                        <select class="filter-input">
                            <option value="">全部薪资</option>
                            <option value="5k">5k以下</option>
                            <option value="5k-10k">5k-10k</option>
                            <option value="10k-15k">10k-15k</option>
                            <option value="15k-30k" selected>15k-30k</option>
                            <option value="30k-50k">30k-50k</option>
                            <option value="50k+">50k以上</option>
                        </select>
                    </div>
                    
                    <div class="filter-group">
                        <label class="filter-label">工作经验</label>
                        <select class="filter-input">
                            <option value="">全部经验</option>
                            <option value="fresh">应届生</option>
                            <option value="1-3" selected>1-3年</option>
                            <option value="3-5">3-5年</option>
                            <option value="5-10">5-10年</option>
                            <option value="10+">10年以上</option>
                        </select>
                    </div>
                    
                    <div class="filter-group">
                        <label class="filter-label">学历要求</label>
                        <select class="filter-input">
                            <option value="">全部学历</option>
                            <option value="highschool">高中及以下</option>
                            <option value="associate">专科</option>
                            <option value="bachelor" selected>本科</option>
                            <option value="master">硕士</option>
                            <option value="phd">博士</option>
                        </select>
                    </div>
                    
                    <div class="filter-group">
                        <label class="filter-label">公司规模</label>
                        <select class="filter-input">
                            <option value="">全部规模</option>
                            <option value="small">小型(50人以下)</option>
                            <option value="medium">中型(50-500人)</option>
                            <option value="large">大型(500-2000人)</option>
                            <option value="enterprise">集团(2000人以上)</option>
                        </select>
                    </div>
                </div>
                
                <div class="filter-groups">
                    <div class="filter-group">
                        <label class="filter-label">行业类型</label>
                        <select class="filter-input">
                            <option value="">全部行业</option>
                            <option value="it" selected>互联网/IT</option>
                            <option value="finance">金融</option>
                            <option value="education">教育</option>
                            <option value="healthcare">医疗健康</option>
                            <option value="retail">零售/电商</option>
                            <option value="manufacturing">制造业</option>
                        </select>
                    </div>
                    
                    <div class="filter-group">
                        <label class="filter-label">职位类型</label>
                        <select class="filter-input">
                            <option value="">全部类型</option>
                            <option value="fulltime" selected>全职</option>
                            <option value="parttime">兼职</option>
                            <option value="intern">实习</option>
                            <option value="temporary">临时</option>
                        </select>
                    </div>
                    
                    <div class="filter-group">
                        <label class="filter-label">发布时间</label>
                        <select class="filter-input">
                            <option value="">全部时间</option>
                            <option value="today">今天</option>
                            <option value="3days">近3天</option>
                            <option value="week" selected>近一周</option>
                            <option value="month">近一个月</option>
                        </select>
                    </div>
                    
                    <div class="filter-group">
                        <label class="filter-label">特色标签</label>
                        <select class="filter-input">
                            <option value="">全部标签</option>
                            <option value="remote">可远程</option>
                            <option value="urgent">急聘</option>
                            <option value="bigcompany">名企</option>
                            <option value="highgrowth">高速成长</option>
                            <option value="welfare">福利好</option>
                        </select>
                    </div>
                </div>
                
                <div class="filter-actions">
                    <button class="btn-reset" onclick="resetFilters()">重置筛选</button>
                    <button class="btn-apply" onclick="applyFilters()">应用筛选</button>
                </div>
            </div>
        </div>
        
        <!-- 快速筛选标签 -->
        <div class="quick-filters">
            <div class="quick-filter-tag active" onclick="toggleQuickFilter(this, 'hot')">
                <i class="fas fa-fire"></i>
                热门职位
            </div>
            <div class="quick-filter-tag" onclick="toggleQuickFilter(this, 'latest')">
                <i class="fas fa-clock"></i>
                最新发布
            </div>
            <div class="quick-filter-tag" onclick="toggleQuickFilter(this, 'highpay')">
                <i class="fas fa-money-bill-wave"></i>
                高薪优先
            </div>
            <div class="quick-filter-tag" onclick="toggleQuickFilter(this, 'remote')">
                <i class="fas fa-wifi"></i>
                可远程
            </div>
            <div class="quick-filter-tag" onclick="toggleQuickFilter(this, 'fresh')">
                <i class="fas fa-graduation-cap"></i>
                应届生友好
            </div>
            <div class="quick-filter-tag" onclick="toggleQuickFilter(this, 'bigcompany')">
                <i class="fas fa-building"></i>
                名企招聘
            </div>
        </div>
        
        <!-- 排序和布局控制 -->
        <div class="view-controls">
            <div class="sort-controls">
                <span class="sort-label">排序方式:</span>
                <select class="sort-select" onchange="changeSort(this.value)">
                    <option value="recommend">推荐排序</option>
                    <option value="latest">最新发布</option>
                    <option value="salary-desc">薪资从高到低</option>
                    <option value="salary-asc">薪资从低到高</option>
                    <option value="hot">热门程度</option>
                </select>
            </div>
            
            <div class="layout-controls">
                <button class="layout-btn" id="gridLayoutBtn" onclick="switchLayout('grid')">
                    <i class="fas fa-th"></i>
                    网格
                </button>
                <button class="layout-btn active" id="listLayoutBtn" onclick="switchLayout('list')">
                    <i class="fas fa-list"></i>
                    列表
                </button>
            </div>
        </div>
        
        <!-- 职位列表 -->
        <div class="job-list" id="jobList">
            <!-- 职位卡片1 -->
            <div class="job-card">
                <div class="job-image-container">
                    <img src="https://picsum.photos/400/300?random=10" alt="后端开发工作环境" class="job-image">
                </div>
                <div class="job-content">
                    <a href="#" class="job-title">后端开发工程师</a>
                    <div class="job-company">
                        <i class="fas fa-building"></i>
                        未来科技有限公司
                    </div>
                    
                    <div class="job-meta">
                        <div class="job-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            北京 · 海淀区
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-money-bill-wave"></i>
                            20k-35k
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-briefcase"></i>
                            1-3年
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-graduation-cap"></i>
                            本科
                        </div>
                    </div>
                    
                    <div class="job-tags">
                        <span class="job-tag">Java</span>
                        <span class="job-tag">Spring Boot</span>
                        <span class="job-tag">微服务</span>
                        <span class="job-tag">后端</span>
                    </div>
                    
                    <div class="job-footer">
                        <div class="post-info">发布于 3天前</div>
                        <div class="job-actions">
                            <button class="action-btn" onclick="toggleLike(this)">
                                <i class="far fa-heart"></i>
                                <span>128</span>
                            </button>
                            <button class="action-btn" onclick="toggleSave(this)">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 职位卡片2 -->
            <div class="job-card">
                <div class="job-image-container">
                    <img src="https://picsum.photos/400/300?random=11" alt="产品经理工作场景" class="job-image">
                </div>
                <div class="job-content">
                    <a href="#" class="job-title">产品经理</a>
                    <div class="job-company">
                        <i class="fas fa-building"></i>
                        智慧互联科技有限公司
                    </div>
                    
                    <div class="job-meta">
                        <div class="job-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            北京 · 朝阳区
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-money-bill-wave"></i>
                            18k-28k
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-briefcase"></i>
                            2-4年
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-graduation-cap"></i>
                            本科
                        </div>
                    </div>
                    
                    <div class="job-tags">
                        <span class="job-tag">产品设计</span>
                        <span class="job-tag">需求分析</span>
                        <span class="job-tag">用户研究</span>
                        <span class="job-tag">互联网</span>
                    </div>
                    
                    <div class="job-footer">
                        <div class="post-info">发布于 1天前</div>
                        <div class="job-actions">
                            <button class="action-btn liked" onclick="toggleLike(this)">
                                <i class="fas fa-heart"></i>
                                <span>256</span>
                            </button>
                            <button class="action-btn" onclick="toggleSave(this)">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 职位卡片3 -->
            <div class="job-card">
                <div class="job-image-container">
                    <img src="https://picsum.photos/400/300?random=12" alt="UI设计师工作环境" class="job-image">
                </div>
                <div class="job-content">
                    <a href="#" class="job-title">UI/UX设计师</a>
                    <div class="job-company">
                        <i class="fas fa-building"></i>
                        创意设计工作室
                    </div>
                    
                    <div class="job-meta">
                        <div class="job-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            北京 · 西城区
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-money-bill-wave"></i>
                            15k-25k
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-briefcase"></i>
                            1-3年
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-graduation-cap"></i>
                            本科
                        </div>
                    </div>
                    
                    <div class="job-tags">
                        <span class="job-tag">UI设计</span>
                        <span class="job-tag">UX设计</span>
                        <span class="job-tag">Figma</span>
                        <span class="job-tag">设计</span>
                    </div>
                    
                    <div class="job-footer">
                        <div class="post-info">发布于 5天前</div>
                        <div class="job-actions">
                            <button class="action-btn" onclick="toggleLike(this)">
                                <i class="far fa-heart"></i>
                                <span>98</span>
                            </button>
                            <button class="action-btn saved" onclick="toggleSave(this)">
                                <i class="fas fa-bookmark"></i>
                                <span>已收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 职位卡片4 -->
            <div class="job-card">
                <div class="job-image-container">
                    <img src="https://picsum.photos/400/300?random=13" alt="数据分析师工作场景" class="job-image">
                </div>
                <div class="job-content">
                    <a href="#" class="job-title">数据分析师</a>
                    <div class="job-company">
                        <i class="fas fa-building"></i>
                        数字智能科技公司
                    </div>
                    
                    <div class="job-meta">
                        <div class="job-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            北京 · 海淀区
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-money-bill-wave"></i>
                            18k-30k
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-briefcase"></i>
                            3-5年
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-graduation-cap"></i>
                            硕士
                        </div>
                    </div>
                    
                    <div class="job-tags">
                        <span class="job-tag">数据分析</span>
                        <span class="job-tag">Python</span>
                        <span class="job-tag">SQL</span>
                        <span class="job-tag">数据可视化</span>
                    </div>
                    
                    <div class="job-footer">
                        <div class="post-info">发布于 2天前</div>
                        <div class="job-actions">
                            <button class="action-btn" onclick="toggleLike(this)">
                                <i class="far fa-heart"></i>
                                <span>156</span>
                            </button>
                            <button class="action-btn" onclick="toggleSave(this)">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 职位卡片5 -->
            <div class="job-card">
                <div class="job-image-container">
                    <img src="https://picsum.photos/400/300?random=14" alt="前端开发工作环境" class="job-image">
                </div>
                <div class="job-content">
                    <a href="#" class="job-title">前端开发工程师</a>
                    <div class="job-company">
                        <i class="fas fa-building"></i>
                        网络科技有限公司
                    </div>
                    
                    <div class="job-meta">
                        <div class="job-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            北京 · 朝阳区
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-money-bill-wave"></i>
                            16k-28k
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-briefcase"></i>
                            1-3年
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-graduation-cap"></i>
                            本科
                        </div>
                    </div>
                    
                    <div class="job-tags">
                        <span class="job-tag">JavaScript</span>
                        <span class="job-tag">React</span>
                        <span class="job-tag">Vue</span>
                        <span class="job-tag">前端</span>
                    </div>
                    
                    <div class="job-footer">
                        <div class="post-info">发布于 4天前</div>
                        <div class="job-actions">
                            <button class="action-btn liked" onclick="toggleLike(this)">
                                <i class="fas fa-heart"></i>
                                <span>210</span>
                            </button>
                            <button class="action-btn saved" onclick="toggleSave(this)">
                                <i class="fas fa-bookmark"></i>
                                <span>已收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 职位卡片6 -->
            <div class="job-card">
                <div class="job-image-container">
                    <img src="https://picsum.photos/400/300?random=15" alt="测试工程师工作场景" class="job-image">
                </div>
                <div class="job-content">
                    <a href="#" class="job-title">软件测试工程师</a>
                    <div class="job-company">
                        <i class="fas fa-building"></i>
                        质量保障科技公司
                    </div>
                    
                    <div class="job-meta">
                        <div class="job-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            北京 · 昌平区
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-money-bill-wave"></i>
                            15k-25k
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-briefcase"></i>
                            1-3年
                        </div>
                        <div class="job-meta-item">
                            <i class="fas fa-graduation-cap"></i>
                            本科
                        </div>
                    </div>
                    
                    <div class="job-tags">
                        <span class="job-tag">软件测试</span>
                        <span class="job-tag">自动化测试</span>
                        <span class="job-tag">Selenium</span>
                        <span class="job-tag">测试开发</span>
                    </div>
                    
                    <div class="job-footer">
                        <div class="post-info">发布于 6天前</div>
                        <div class="job-actions">
                            <button class="action-btn" onclick="toggleLike(this)">
                                <i class="far fa-heart"></i>
                                <span>89</span>
                            </button>
                            <button class="action-btn" onclick="toggleSave(this)">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 分页控件 -->
        <div class="pagination-container">
            <div class="pagination">
                <button class="page-btn disabled">
                    <i class="fas fa-chevron-left"></i>
                </button>
                <button class="page-btn active">1</button>
                <button class="page-btn">2</button>
                <button class="page-btn">3</button>
                <button class="page-btn">4</button>
                <button class="page-btn">5</button>
                <button class="page-btn">
                    <i class="fas fa-chevron-right"></i>
                </button>
            </div>
        </div>
    </div>
    

    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>

        
        // 切换筛选面板展开/收起
        document.getElementById('filterToggle').addEventListener('click', function() {
            const filterContent = document.getElementById('filterContent');
            const icon = this.querySelector('i');
            const text = this.querySelector('span');
            
            if (filterContent.style.display === 'none') {
                filterContent.style.display = 'block';
                icon.classList.remove('fa-chevron-down');
                icon.classList.add('fa-chevron-up');
                text.textContent = '收起';
            } else {
                filterContent.style.display = 'none';
                icon.classList.remove('fa-chevron-up');
                icon.classList.add('fa-chevron-down');
                text.textContent = '展开';
            }
        });
        
        // 应用筛选
        function applyFilters() {
            showToast('筛选条件已应用');
            // 实际应用中，这里会根据筛选条件更新职位列表
        }
        
        // 重置筛选
        function resetFilters() {
            document.querySelectorAll('.filter-input').forEach(input => {
                if (input.tagName === 'SELECT') {
                    input.selectedIndex = 0;
                } else {
                    input.value = '';
                }
            });
            showToast('筛选条件已重置');
        }
        
        // 移除单个筛选条件
        function removeFilter(type, value) {
            // 在实际应用中，这里会根据类型和值移除对应的筛选条件
            const filterElement = event.target.closest('.selected-filter');
            filterElement.remove();
            
            // 如果没有选中的筛选条件，隐藏整个区域
            if (document.querySelectorAll('.selected-filter').length === 0) {
                document.getElementById('selectedFilters').style.display = 'none';
            }
            
            showToast(`已移除筛选: ${value}`);
        }
        
        // 清除所有筛选条件
        function clearAllFilters() {
            document.querySelectorAll('.selected-filter').forEach(filter => {
                filter.remove();
            });
            document.getElementById('selectedFilters').style.display = 'none';
            resetFilters();
            showToast('已清除所有筛选条件');
        }
        
        // 切换快速筛选标签
        function toggleQuickFilter(element, type) {
            element.classList.toggle('active');
            const isActive = element.classList.contains('active');
            const text = element.textContent.trim();
            
            if (isActive) {
                showToast(`已添加筛选: ${text}`);
            } else {
                showToast(`已移除筛选: ${text}`);
            }
        }
        
        // 切换布局
        function switchLayout(layoutType) {
            const jobList = document.getElementById('jobList').parentNode;
            const gridBtn = document.getElementById('gridLayoutBtn');
            const listBtn = document.getElementById('listLayoutBtn');
            
            if (layoutType === 'grid') {
                jobList.classList.remove('list-view');
                gridBtn.classList.add('active');
                listBtn.classList.remove('active');
                showToast('已切换到网格布局');
            } else {
                jobList.classList.add('list-view');
                listBtn.classList.add('active');
                gridBtn.classList.remove('active');
                showToast('已切换到列表布局');
            }
        }
        
        // 改变排序方式
        function changeSort(sortType) {
            let sortText = '';
            switch(sortType) {
                case 'recommend':
                    sortText = '推荐排序';
                    break;
                case 'latest':
                    sortText = '最新发布';
                    break;
                case 'salary-desc':
                    sortText = '薪资从高到低';
                    break;
                case 'salary-asc':
                    sortText = '薪资从低到高';
                    break;
                case 'hot':
                    sortText = '热门程度';
                    break;
            }
            showToast(`已按${sortText}排序`);
        }
        
        // 切换点赞状态
        function toggleLike(button) {
            const icon = button.querySelector('i');
            const countElement = button.querySelector('span');
            let count = parseInt(countElement.textContent);
            
            if (icon.classList.contains('far')) {
                // 未点赞 -> 点赞
                icon.classList.remove('far');
                icon.classList.add('fas');
                button.classList.add('liked');
                countElement.textContent = count + 1;
                showToast('点赞成功');
            } else {
                // 已点赞 -> 取消点赞
                icon.classList.remove('fas');
                icon.classList.add('far');
                button.classList.remove('liked');
                countElement.textContent = count - 1;
                showToast('已取消点赞');
            }
        }
        
        // 切换收藏状态
        function toggleSave(button) {
            const icon = button.querySelector('i');
            const text = button.querySelector('span');
            
            if (icon.classList.contains('far')) {
                // 未收藏 -> 收藏
                icon.classList.remove('far');
                icon.classList.add('fas');
                button.classList.add('saved');
                text.textContent = '已收藏';
                showToast('收藏成功');
            } else {
                // 已收藏 -> 取消收藏
                icon.classList.remove('fas');
                icon.classList.add('far');
                button.classList.remove('saved');
                text.textContent = '收藏';
                showToast('已取消收藏');
            }
        }
        
        // 初始化页面
        document.addEventListener('DOMContentLoaded', function() {
            // 检查是否有选中的筛选条件，如果没有则隐藏
            if (document.querySelectorAll('.selected-filter').length === 0) {
                document.getElementById('selectedFilters').style.display = 'none';
            }
        });
    </script>
</body>
</html>
    
